import request from '@/utils/request'

// 查询补考列表
export function listExamMakeup(query) {
  return request({
    url: '/exam/examMakeup/list',
    method: 'get',
    params: query
  })
}

// 查询补考详细
export function getExamMakeup(id) {
  return request({
    url: '/exam/examMakeup/' + id,
    method: 'get'
  })
}

// 新增补考
export function addExamMakeup(data) {
  return request({
    url: '/exam/examMakeup',
    method: 'post',
    data: data
  })
}


// 生成补考名单
export function genExamMakeup(data) {
  return request({
    url: '/exam/examMakeup/gen',
    method: 'get'
  })
}

// 修改补考
export function updateExamMakeup(data) {
  return request({
    url: '/exam/examMakeup',
    method: 'put',
    data: data
  })
}

// 删除补考
export function delExamMakeup(id) {
  return request({
    url: '/exam/examMakeup/' + id,
    method: 'delete'
  })
}

// 导出补考
export function exportExamMakeup(query) {
  return request({
    url: '/exam/examMakeup/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/exam/examMakeup/importTemplate',
    method: 'get'
  })
}